<template>
  <div class="add-ti">
    <div class="child-question-box">
       <span class="child-num">{{num}}.&nbsp;&nbsp;问答题</span>
       <div class="child-input">
            <ckeditor id="ck" v-model="childData.content" :height="'90px'" :placeholder="'请输入题干'"></ckeditor>
       </div>
    </div>
    <addUploads :quesFileList="childData.quesFileList"></addUploads>
    <div v-if="childType == 6">
      <div style="line-height: 37px;margin-bottom: 10px;">
        <span>参考答案：</span>
        <div style="display: inline-block;width: calc(100% - 96px);vertical-align: top;">
            <ckeditor id="ck" v-model="childData.answer" :height="'90px'" :placeholder="'请输入参考答案'"></ckeditor>
        </div>
      </div>
    </div>
    <!-- <div>
      <span style="line-height: 37px;">答案解析：</span>
      <div style="display: inline-block;width: calc(100% - 96px);vertical-align: top;">
        <ckeditor id="ck" v-model="childData.analysis" :height="'180px'" :placeholder="'请输入解析'"></ckeditor>
      </div>
    </div> -->
  </div>
</template>

<script>
import addUploads from '@/components/addTi/addUpload/index.vue';
export default {
  data() {
    return {

    };
  },
  components: {
    addUploads
  },
  props: {
    childData: {
      type: Object,
      default: () =>{}
    },
    childType: {
      type: Number,
      default: 0
    },
    num: {
        type: Number,
        default: 0
    }
  },
  mounted() {
    console.log(this.childData);
  },
  methods: {
    
  }
};
</script>

<style>
</style>